package com.hanserwei.mydemo.stream;

import java.util.stream.IntStream;

public class FindTest1 {
    public static void main(String[] args) {
        IntStream intStream = IntStream.of(1, 2, 3, 4, 5, 6, 7, 8, 9);
        System.out.println(intStream.filter(x -> (x & 1) == 0).findFirst());
    }
}
